import type { MenuProps } from 'antd';
import { RouterObj } from '@/routers/interface/index'
export interface globalStateType {
  token: string;
  userInfo: userInfoType;
  isGuid?:boolean;
}

export interface userInfoType {
   name?:string;
   password?:string;
}

type MenuItem = Required<MenuProps>["items"][number];
export interface menuDataType {
  currentRouteKey?:string;
  crumbList?:MenuItem[];
  collapse?:boolean;
  allRouter?:ItemRouter[];
}

export interface ItemRouter {
   label?:string;
   key?:string;
   children?:ItemRouter[];
}

export interface selectOpType{
  value?:string;
  label?:string;
}

export interface subType{
  subOptions?:selectOpType[];
  userOptions?:selectOpType[];
  RAMOptions?:selectOpType[];
  subAllOptions?:selectOpType[];
}
